#pragma once
#include "afxwin.h"


// CSettingDlg dialog
struct SSerInfo;
class CSettingDlg : public CDialog
{
	DECLARE_DYNAMIC(CSettingDlg)

public:
	CSettingDlg( CONST SSerInfo *Info, CONST COMMCONFIG *Config, UINT nCount, CWnd* pParent = NULL);   // standard constructor
	virtual ~CSettingDlg();

// Dialog Data
	enum { IDD = IDD_SETTING_DIALOG };
	INT Index() const { return mIndex; }
	void Index(INT val) { mIndex = val; }
	double SamplingSeconds() const { return mSamplingSeconds; }
	void SamplingSeconds(double val) { mSamplingSeconds = val; }
	double InvaintSeconds() const { return mInvaintSeconds; }
	void InvaintSeconds(double val) { mInvaintSeconds = val; }

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()

private:
	CONST SSerInfo* mInfo;
	CONST COMMCONFIG* mConfig;

	CONST UINT mCount;

	CComboBox mComboCtrl;
	double mSamplingSeconds;
	double mInvaintSeconds;
	INT mIndex;
protected:
	virtual void OnOK();
};
